package org.jeecg.modules.front.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 微信注册用户信息表
 * @Author: jeecg-boot
 * @Date:   2021-12-04
 * @Version: V1.0
 */
@Data
@TableName("bus_user")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="bus_user对象", description="微信注册用户信息表")
public class BusUser {

    /**注册用户id*/
    @Excel(name = "注册用户id", width = 15)
    @ApiModelProperty(value = "注册用户id")
    @TableId(type = IdType.AUTO)
    private String userId;
    /**微信openId*/
    @Excel(name = "微信openId", width = 15)
    @ApiModelProperty(value = "微信openId")
    private String openId;
    /**手机号*/
    @Excel(name = "手机号", width = 15)
    @ApiModelProperty(value = "手机号")
    private String phoneNum;
    /**头像*/
    @Excel(name = "头像", width = 15)
    @ApiModelProperty(value = "头像")
    private String headImgUrl;
    /**1:游客，2:个人，3:社区，4:企业*/
    @Excel(name = "1:游客，2:个人，3:社区，4:企业", width = 15)
    @ApiModelProperty(value = "1:游客，2:个人，3:社区，4:企业")
    private Integer roleType;
    /**状态，状态，-1:游客，0:待审核，1:审核通过，2:审核不通过*/
    @Excel(name = "状态，-1:游客，0:待审核，1:审核通过，2:审核不通过", width = 15)
    @ApiModelProperty(value = "状态，-1:游客，0:待审核，1:审核通过，2:审核不通过")
    private Integer status;
    /**审核不通过原因*/
    @Excel(name = "审核不通过原因", width = 15)
    @ApiModelProperty(value = "审核不通过原因")
    private String reason;
    /**注册时间*/
    @Excel(name = "注册时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "注册时间")
    private Date createTime;
    /**修改时间*/
    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    @TableField(exist = false)
    @ApiModelProperty(value = "申请角色 2:个人，3:社区，4:企业")
    private Integer applyRoleType;
}
